dnl $Id$

PHP_ARG_ENABLE(twitter, whether to enable Twitter support,
[  --enable-twitter         Enable Twitter support])

PHP_ARG_ENABLE(twitter-debug, whether to enable Twitter debug support, 
[  --enable-twitter-debug   Enable Twitter debug support])

if test "$PHP_TWITTER" != "no"; then 
	if test "$PHP_JSON" = "no"; then
		AC_MSG_ERROR([Twitter support requires the JSON extension, configure with --enable-json])
	fi

	if test "$PHP_TWITTER_DEBUG" != "no" then
		AC_DEFINE(TWITTER_DEBUG, 1, [Whether Twitter debug support is enabled]);
	fi

	PHP_NEW_EXTENSION(twitter, twitter.c, $ext_shared)
fi